namespace java edu.hawaii.ics.pjdb.types
include 'worker_types.thrift'

exception WorkerException {
    1: string message;
}

/**
 * A worker does the bidding of the master, which sends it commands through
 * this service.
 */
service WorkerService {
    /**
     * Run a command. Note that this is an asynchronous process. Results
     * are submitted to a socket included as part of the command.
     */
    void executeCommand(1: worker_types.WorkerCommand command)
}